<template>
  <header class="header">
    <div class="left">
      <div class="logo">
        <svg-icon name="logo1" class="logo1"></svg-icon>
      </div>
      <div class="logo2">
        <svg-icon name="logo2" class="logo2"></svg-icon>
      </div>
      <div class="sec-btns">
        <div class="pre">
          <svg-icon name="back"></svg-icon>
        </div>
        <div class="next">
          <svg-icon name="next"></svg-icon>
        </div>
      </div>
      <div class="top-search">
        <input type="text" />
      </div>
    </div>
    <div class="right">
      <div class="user">
        <div class="login">
            <RouterLink :to="'/'">
                <img class="user-photo" src="https://p3.music.126.net/V9zrWZJLmYUqWnxb-ZFIlw==/109951165810461908.jpg?imageView&enlarge=1&quality=100&thumbnail=28y28&type=webp" alt="">
            </RouterLink>
            <RouterLink :to="''" class="info">
                <p class="user-name">我是霸霸</p>
                <svg-icon name="info_btn"></svg-icon>
            </RouterLink>
        </div>
      </div>
      <div class="sec">
        <svg-icon name="theme"></svg-icon>
      </div>
      <div class="sec">
        <svg-icon name="setting" style="width: 24px;height: 24px;"></svg-icon>
      </div>
      <div class="sec">
        <svg-icon name="logo1"></svg-icon>
      </div>
      <div class="sec">
        <svg-icon name="message" style="width: 24px;height: 24px;"></svg-icon>
      </div>
      <div class="sec">
        <svg-icon name="mini" style="width: 24px;height: 24px;"></svg-icon>
      </div>
      <div class="sec">
        <svg-icon name="zoomout" style="width: 24px;height: 24px;font-weight: bold;"></svg-icon>
      </div>
      <div class="sec">
        <svg-icon name="zoomin" style="width: 24px;height: 24px;font-weight: bold;"></svg-icon>
      </div>
      <div class="sec">
        <svg-icon name="close" style="width: 24px;height: 24px;font-weight: bold;"></svg-icon>
      </div>
    </div>
  </header>
</template>
<script setup lang="ts">
import { RouterLink } from 'vue-router';
</script>
<style lang="scss" scoped>
.header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
  .left {
    margin-left: 19px;
    display: flex;
    height: 60px;
    align-items: center;
    width: 180px;
    .logo,
    .logo1 {
      width: 24px;
      height: 24px;
    }
    .logo2 {
      width: 92px;
      height: 24px;
      margin-left: 6px;
    }
    .sec-btns {
      margin-left: 68px;
      display: flex;
      align-items: center;
    }
    .pre {
      margin-right: 8px;
    }
    .pre,
    .next {
      font-size: 26px;
      width: 36px;
      text-align: center;
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      height: 36px;
      &.isTrue:hover {
        background-color: rgba($color: #fff, $alpha: 0.3);
      }
      svg {
        width: 26px;
        height: 26px;
      }
    }
    .isTrue {
      cursor: pointer;
    }
    .top-search {
      height: 36px;
      margin-left: 12px;
      input {
        width: 160px;
        height: 100%;
        box-sizing: border-box;
        padding: 4px 22px 4px 32px;
        outline: none;
        border: none;
        border-radius: 100px;
        background-color: rgba($color: #fff, $alpha: 0.3);
      }
    }
  }
  .right {
    display: flex;
    align-items: center;
    .user {
      width: 112px;
      height: 36px;
      border-radius: 100px;
      background-color: rgba($color: #fff, $alpha: 0.4);
      .login{
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        a{
            height: 28px;
            text-decoration: none;
        }
        .user-photo{
            width: 28px;
            height: 28px;
            background-color: rgba($color: #000000, $alpha: 1.0);
            border-radius: 50%;
            margin-left: 5px;
        }
        .user-name{
            line-height: 28px;
            color: #000000;
            font-size: 12px;
            margin-left: 6px;
        }
        .info{
            display: flex;
            align-items: center;
        }
      }
    }
    .sec{
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 2px;
        &:hover{
            background-color: rgba($color: #fff, $alpha: 0.4);
        }
        svg{
            width: 20px;
            height: 20px;
        }
    }
  }
}
</style>
